home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / Imakefile < prev    next >
Makefile  |  1996-07-24  |  3KB  |  107 lines

  1. /*   CrossFire, A Multiplayer game for X-windows
  2.  *
  3.  *   $Id: Imakefile,v 1.16 1995/11/13 07:59:12 master Exp $
  4.  *
  5.  *   Copyright (C) 1992 Frank Tore Johansen
  6.  *
  7.  *   This program is free software; you can redistribute it and/or modify
  8.  *   it under the terms of the GNU General Public License as published by
  9.  *   the Free Software Foundation; either version 2 of the License, or
  10.  *   (at your option) any later version.
  11.  *
  12.  *   This program is distributed in the hope that it will be useful,
  13.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *   GNU General Public License for more details.
  16.  *
  17.  *   You should have received a copy of the GNU General Public License
  18.  *   along with this program; if not, write to the Free Software
  19.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  *   The author can be reached via e-mail to frankj@ifi.uio.no.
  22.  */
  23.  
  24. IMAKE_DEFINES=-I$(NEWTOP)/.. -I$(NEWTOP)/config -I$(NEWTOP)
  25. #include "config/crosssite.def"
  26. #include "config/crossfire.tmpl"
  27.  
  28. MAKE = make
  29. #define IHaveSubdirs
  30.  
  31. SUBDIRS = common doc server client utils crossedit include config lib
  32.  
  33. FILES = CHANGES CREDITS DEVELOPERS DONE Imakefile INSTALL License README \
  34.     TODO 
  35.  
  36. AllTarget(emptyrule)
  37.  
  38. World::
  39.     @echo ""
  40.     @echo "Starting to build crossfire.  Time to start praying 8)"
  41.     @echo ""
  42.     @date
  43.     @echo ""
  44.     $(XMKMF)
  45.     make Makefiles
  46.     $(MAKE) $(MFLAGS) clean
  47.     $(MAKE) $(MFLAGS) includes
  48.     $(MAKE) $(MFLAGS) depend
  49.     $(MAKE) $(MFLAGS) all
  50.     @echo ""
  51.     @date
  52.     @echo ""
  53.     @echo "Complete build of crossfire (hopefully) finished."
  54.     @echo ""
  55.  
  56.  
  57. MakeSubdirs($(SUBDIRS))
  58. DependSubdirs($(SUBDIRS))
  59.  
  60. relink:
  61.     $(RM) server/crossfire
  62.     $(RM) client/crossclient
  63.     $(RM) crossedit/crossedit
  64.     $(RM) images/xbmtobdf
  65.     $(MAKE) $(MKFLAGS) all
  66.  
  67. ifi:
  68.     (cd common; $(MAKE) $(MKFLAGS) all)
  69.     (cd server; $(MAKE) $(MKFLAGS) ifi)
  70.     (cd client; $(MAKE) $(MKFLAGS) ifi)
  71. /*    (cd crossedit; $(MAKE) $(MKFLAGS) ifi)*/
  72.     (cd images; $(MAKE) $(MKFLAGS) install)
  73.  
  74. maps:
  75.     $(RM) $(VERSION).maps.tar.Z $(VERSION).maps.tar
  76.     tar cvfh $(VERSION).maps.tar lib/README lib/archetypes lib/artifacts lib/treasures lib/mapindex lib/motd lib/maps lib/rplay.conf lib/sounds
  77.     compress $(VERSION).maps.tar
  78.  
  79. PackArchive($(VERSION))
  80.  
  81. MakeArchive($(SUBDIRS))
  82.  
  83. InsertArchive($(FILES),.)
  84.  
  85. dist: archive
  86.  
  87. shar: /* Doesn't work anymore */
  88.     $(RM) $(VERSION).shar.*
  89.     shar -n $(VERSION) -a -s frankj@ifi.uio.no -c -o $(VERSION).shar -L50 $(FILES) $(SUBDIRS)
  90.  
  91. proto:
  92.     (cd common; make proto)
  93.     (cd client; make proto)
  94.     (cd server; make proto)
  95.     (cd crossedit; make proto)
  96.  
  97. clean::
  98.     (cd include; $(RM) *~ *proto.h.orig)
  99.     (cd crossedit; $(RM) *proto.h.orig)
  100.     (cd client; $(RM) *proto.h.orig)
  101.  
  102. distclean: clean
  103.     $(RM) */Makefile Makefile
  104.  
  105. love::
  106.     @echo UmuwzG niCtB.  Kwzm lCuxml. | tr I-Za-zA-H A-Za-z
  107.